//
//  PKAboutUsViewController.swift
//  Panku
//
//  Created by mac on 2017/2/16.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit
import SnapKit
import YYKit

class PKAboutUsViewController: PKBaseViewController {
    
    //MARK:properties
    //UI
    lazy var logoView = UIImageView()
    lazy var versionLabel = UILabel()
    
    //MARK: - UI
    override func setupRootView() {
        view.backgroundColor = UIColor.white
    }
    
    override func setupSubViews() {
        view.addSubview(logoView)
        view.addSubview(versionLabel)
        
        logoView.image = R.image.mine_logo()
        
        let version = "版本号: " + PKInfoServices.versionNumber()
        versionLabel.text = version
        
    }
    
    override func setupSubViewsConstraints() {
        logoView.snp.makeConstraints { (make) in
            make.center.equalTo(view.snp.center)
            make.width.equalTo(150*D_FACTOR_Y)
            make.height.equalTo(150*D_FACTOR_Y)
        }
        
        versionLabel.snp.makeConstraints { (make) in
            make.centerX.equalTo(logoView.snp.centerX)
            make.top.equalTo(logoView.snp.bottom).offset(30)
        }
    }
    
    override func setupNavigationBar() {
        self.title = "关于我们"
    }
    
    override func bindViewModel() {
        
    }

}
